Lesson: 21 - List

Purpose : Students learn the usage of lists in programming (in addition with Motion, Looks, Basic Events, Variables, Operators).

Materials Required

Scratch 3.0

Curriculum Content List(6.15)
Prior knowledge

Students should know about variables and operators.

Exercises
  • Click Here To see the video to know about What lists are and the difference between list and variable.

Exercise:1



  1. Use the previous lesson’s exercise-1. Insert two more fruit sprites that are also falling like bananas. Increase the score by different values when the monkey touches each fruit. Keep a list to track the name of the fruits which are caught by the monkey. The game should end in 1 minute. For this you will also introduce a timer. When the game ends, the monkey will say how many bananas and other fruits it caught. Show them by using variables also.

  2. Exercise Video




    Exercise:2 (Optional)



  3. Get a number from the user. Write a code to convert a number from decimal to binary. Store the binary digits in a list and display the binary number.

  • Click Here To see the video to know about What lists are and the difference between list and variable.

Exercise Video




Solutions




Teacher's Instruction
  1. Teachers should teach the difference between variables and lists.
  2. Teachers should help students complete the exercise-1 because this exercise will be developed in further lessons.